[#include "/WEB-INF/pages/common/taglibs.ftl"]
[@c.url var="backUrl" value="/manage/Home_owner.action" scope="page"][/@c.url]
[#assign act='update']
[#macro _script]
	<script type="text/javascript" src="[@c.url value='/js/plugins/jquery.alerts.js'/]"></script>
	<script type="text/javascript">
		var base = (function(){
			// 事件绑定
			function _addEventListeners() {
			};
			return {
                config: {
                	url : null,
                    theme: null
                },
                init: function () {
                    _addEventListeners();
                }
			}
		}());
		
		$(function(){
			var link = "[@c.url value='/manage/Home_owner.action' /]";
			base.config.theme = getTheme();
			base.config.url = link;
            //Initializing the form
			base.init();
		})
	</script>
[/#macro]

[#macro _content]
	<form action="[@c.url value='/manage/Home_upinfo.action?backurl=${action.backurl}'/]" method="post">
		<table cellspacing="0" cellpadding="0" border="0" class="stdtable-form">
			<thead>
				<tr>
					<th class="head0"></th>
					<th class="head1"></th>
					<th class="head0"></th>
					<th class="head1"></th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>用户名：[#--[@fmt.message key="manage.category"/] --]</td>
					<td colspan=3>
						<input class="smallinput" placeholder="用户名" name="feedback.title" value="${(user.userName)!''}"/>
					</td>
				</tr>
				<tr>
					<td>真实姓名：</td>
					<td colspan=3>
						<input class="tinyinput" placeholder="真实姓名" name="feedback.sendName" value="${(user.realName)!''}"/>
            	&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" style="text-align:right;line-height:24px;"> 用户详细</a>
					</td>
				</tr>
				<tr>
					<td>邮件：</td>
					<td>
						<input class="longinput" placeholder="邮件" name="feedback.sendRegion" value="${(user.email)!''}"/>
					</td>
					<td>IP地址：</td>
					<td><input class="tinyinput" readonly="readonly" placeholder="ip地址" name="feedback.ipAddress" value="${(feedback.ipAddress)!''}"/></td>
				</tr>
				<tr>
					<td>审核阶段:</td>
					<td><input class="longinput" placeholder="审核阶段" name="feedback.type" value="${(feedback.type)!''}"/></td>
					<td>时间：</td>
					<td><input class="tinyinput" readonly="readonly" placeholder="时间" name="feedback.createDate" value="[#if feedback != null && (feedback.createDate)??]${(feedback.createDate)?datetime?string.medium}[/#if]"/></td>
				</tr>
				<tr>
					<td colspan="4">
						<button class="submit ">提&nbsp;&nbsp;交</button>
						<input type="reset" class="reset radius2" value="重&nbsp;&nbsp;置">
						<a style="margin-left: 6px; background-color: rgb(247, 247, 247); border-color: rgb(204, 204, 204); color: rgb(51, 51, 51);" href="${action.backurl}" class="anchorbutton button_alert">
							<span style="line-height: 21px; background-color: rgb(255, 255, 255); border-color: rgb(221, 221, 221);">返&nbsp;&nbsp;回</span>
						</a>
					</td>
				</tr>
			</tbody>
		</table>
		<br>
	</form>
[/#macro]

	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>欢迎页</title>
		<meta name="menu" content="AdminMenu"/>
		<meta name="heading" content="heading"/>
		[@_script /]
	</head>
	<body id="body">
		<div id="welcomeTableList">
			<table cellspacing="0" cellpadding="0" border="0" class="stdtable" >
                <thead>
                    <tr>
                        <th class="head0 span2" ></th>
                        <th class="head1"></th>
						<th class="head0 span2" ></th>
                        <th class="head1"></th>
                    </tr>
                </thead>
                <tbody>
                	<tr>
                		<td>当前登录时间：</td>
                		<td>${(member.currentLoginTime)?datetime?string('yyyy-MM-dd HH:mm:ss')}</td>
                		<td>当前登录IP：</td>
                        <td>${(member.currentLoginIp)!'0.0.0.0'}</td>
                	</tr>
                	<tr>
                		<td>上次登录时间：</td>
                		<td>${(member.lastLoginTime)?datetime?string('yyyy-MM-dd HH:mm:ss')}</td>
                		<td>上次登录IP：</td>
                        <td>${(member.lastLoginIp)!'0.0.0.0'}</td>
                	</tr>
                	<tr>
                	    <td>总登录次数：</td>
                		<td>${(member.loginCount)!''}</td>
                		<td>有效期限日：</td>
                        <td>[#if member.expireDay??]${(member.expireDay)?date?string.full}[/#if]</td>
                     </tr>
                </tbody>
            </table>
            <br/>
			[#assign act='update']
			<form action="[@c.url value="/manage/User_${act}.action"/]?backurl=${backUrl}" method="post" class="stdform stdform2">
				[#include "/WEB-INF/pages/manage/User/_user.ftl"]
			</form>
		</div>
	</body>
	</html>
